<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8"/>
<title>Insert title here</title>
<script src="http://localhost:8080/js/jquery.min.js"></script>
</head>
<body>
	buy.html
	<a href="#" onclick="buy()">点击我</a>
</body>
<script>
	
	function buy(){
		$.post("http://localhost:8080/home",{},function(data){
			alert(data);
		});
	}
	
	
	
</script>
</html>